textbuffer: Redo insert markup a little bit
authorMatthias Clasen <mclasen@redhat.com>
Sat, 19 Sep 2020 18:17:28 +0000 (14:17 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Sat, 19 Sep 2020 18:17:28 +0000 (14:17 -0400)
commit6b708e9b602b945d674be05c7b68580d5d7d75bc
tree1d23257cec0397d50d26f8027f395eaf3454649b
parentc1e33056fb2ae513c579532d0f747b50bb6f0a49
textbuffer: Redo insert markup a little bit

Redo the tag insertion function to avoid quadratic
behavior, and at the same time, fix handling of
alpha for color attributes.

Update the copy of this function in gtk4-demo
as well.
demos/gtk-demo/fontify.c
gtk/gtktextbuffer.c